import {system} from "../function_menu/dispatch";
let targetSetting  = system("targetSetting", ["form", "search","setRole", "formGet"], {
  state: {
    idKey:"userId",
    roleKey:"roleId",
    mapPowerList:{},
    vuexDepartmentSearchForm: null,
    vuexYearSearchForm: null,
    vuexMonthSearchForm: null,
  },
  mutations: {
    updateInfo(state, par) {
      if(par[1] instanceof Array){
        state[par[0]] = par[1];
      }else {
        state[par[0]] = Object.assign({}, state[par[0]]  , par[1]);
      }
    }
  }

})

export default targetSetting;
